package com.lftea.util;

import org.apache.log4j.Logger;

public class CommonUtil {
	public static Logger logger = Logger.getLogger(CommonUtil.class.getName());
	
	public  static long toLong(Object object){
		if(null == object){
			logger.warn("Object转换成Long时不能为null！");
			return 0;
		}
		return Long.valueOf(String.valueOf(object));
	}
}
